//package com.jenkins.test.proxy.doscan;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
//import org.springframework.beans.factory.support.BeanDefinitionRegistry;
//import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.ApplicationContextAware;
//import org.springframework.stereotype.Component;
//
//import java.util.Arrays;
//
///**
// * @version V0.0.1
// * @ClassName: {@link AnnotationScannerConfigurer}
// * @Description: 保留配置, 注解扫描的实例代码
// * @author: Lanzhou
// * @date: 2022/1/23 16:48
// * @Copyright:2019 All rights reserved.
// * 注意：本内容仅限于本人开发与维护，禁止外泄以及用于其他的商业目
// */
//@Slf4j
//@Component
//public class AnnotationScannerConfigurer implements ApplicationContextAware, BeanDefinitionRegistryPostProcessor {
//
//    private ApplicationContext applicationContext;
//
//
//    @Override
//    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
//        this.applicationContext = applicationContext;
//    }
//
//    @Override
//    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
//        log.info("postProcessBeanFactory() beanDefinition的个数=====>" + beanFactory.getBeanDefinitionCount());
//    }
//
//    @Override
//    public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
//        log.info("postProcessBeanDefinitionRegistry() beanDefinitionName=====>" + Arrays.toString(registry.getBeanDefinitionNames()));
//        // 需要被代理的接口
//        AnnotationScanner annotationScanner = new AnnotationScanner(registry);
//        annotationScanner.setResourceLoader(applicationContext);
//        // "com.pepsi.annotationproxy.service"是我 接口所在的包
//        annotationScanner.scan("com.jenkins.test.proxy.doscan.service");
//    }
//}
